package com.leesche.zcsp.node.web.service.impl.data.read;

import com.leesche.zcsp.node.web.model.PubDevice;

import java.io.Serializable;
import java.util.Date;

public class PubDeviceDto implements Serializable {
    private Long deviceid;

    private String deviceshortcode;

    private String imme;

    private String devicename;

    private String did;

    private String mac;

    private Integer state;

    private Integer isonline;

    private Integer dp;

    private Date lastonlinetime;

    private Date bindtime;

    private Date warntime;

    private Integer addgift;

    private Integer outgift;

    private Integer money;

    private Long netmoney;

    private Integer coin;

    private Integer batterystatus;

    private String skey;
    private Long adminid;
    private Long placeid;
    private Integer isDisCode;
    private String businessNo;

    private Long deviceTypeId;


    public PubDeviceDto() {
    }

    public PubDeviceDto(PubDevice pubDevice) {
        this.deviceid = pubDevice.getDeviceid();
        this.deviceshortcode = pubDevice.getDeviceshortcode();
        this.imme = pubDevice.getImme();
        this.devicename = pubDevice.getDevicename();
        this.did = pubDevice.getDid();
        this.mac = pubDevice.getMac();
        this.state = pubDevice.getState();
        this.isonline = pubDevice.getIsonline();
        this.dp = pubDevice.getDp();
        this.lastonlinetime = pubDevice.getLastonlinetime();
        this.bindtime = pubDevice.getBindtime();
        this.warntime = pubDevice.getWarntime();
        this.addgift = pubDevice.getAddgift();
        this.outgift = pubDevice.getOutgift();
        this.money = pubDevice.getMoney();
        this.netmoney = pubDevice.getNetmoney();
        this.coin = pubDevice.getCoin();
        this.batterystatus = pubDevice.getBatterystatus();
        this.skey = pubDevice.getSkey();
        this.adminid = pubDevice.getAdminid();
        this.placeid = pubDevice.getPlaceid();
        this.isDisCode = pubDevice.getIsdiscode();
        this.businessNo = "";
        this.deviceTypeId = pubDevice.getDevicetypeid();
    }

    public Long getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(Long deviceid) {
        this.deviceid = deviceid;
    }

    public String getDeviceshortcode() {
        return deviceshortcode;
    }

    public void setDeviceshortcode(String deviceshortcode) {
        this.deviceshortcode = deviceshortcode;
    }

    public String getImme() {
        return imme;
    }

    public void setImme(String imme) {
        this.imme = imme;
    }

    public String getDevicename() {
        return devicename;
    }

    public void setDevicename(String devicename) {
        this.devicename = devicename;
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getIsonline() {
        return isonline;
    }

    public void setIsonline(Integer isonline) {
        this.isonline = isonline;
    }

    public Integer getDp() {
        return dp;
    }

    public void setDp(Integer dp) {
        this.dp = dp;
    }

    public Date getLastonlinetime() {
        return lastonlinetime;
    }

    public void setLastonlinetime(Date lastonlinetime) {
        this.lastonlinetime = lastonlinetime;
    }

    public Date getBindtime() {
        return bindtime;
    }

    public void setBindtime(Date bindtime) {
        this.bindtime = bindtime;
    }

    public Date getWarntime() {
        return warntime;
    }

    public void setWarntime(Date warntime) {
        this.warntime = warntime;
    }

    public Integer getAddgift() {
        return addgift;
    }

    public void setAddgift(Integer addgift) {
        this.addgift = addgift;
    }

    public Integer getOutgift() {
        return outgift;
    }

    public void setOutgift(Integer outgift) {
        this.outgift = outgift;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Long getNetmoney() {
        return netmoney;
    }

    public void setNetmoney(Long netmoney) {
        this.netmoney = netmoney;
    }

    public Integer getCoin() {
        return coin;
    }

    public void setCoin(Integer coin) {
        this.coin = coin;
    }

    public Integer getBatterystatus() {
        return batterystatus;
    }

    public void setBatterystatus(Integer batterystatus) {
        this.batterystatus = batterystatus;
    }

    public String getSkey() {
        return skey;
    }

    public void setSkey(String skey) {
        this.skey = skey;
    }

    public Long getAdminid() {
        return adminid;
    }

    public void setAdminid(Long adminid) {
        this.adminid = adminid;
    }

    public Long getPlaceid() {
        return placeid;
    }

    public void setPlaceid(Long placeid) {
        this.placeid = placeid;
    }

    public Integer getIsDisCode() {
        return isDisCode;
    }

    public void setIsDisCode(Integer isDisCode) {
        this.isDisCode = isDisCode;
    }

    public String getBusinessNo() {
        return businessNo;
    }

    public void setBusinessNo(String businessNo) {
        this.businessNo = businessNo;
    }

    public Long getDeviceTypeId() {
        return deviceTypeId;
    }

    public void setDeviceTypeId(Long deviceTypeId) {
        this.deviceTypeId = deviceTypeId;
    }
}